package com.mine.redis.util.mapper;

import com.mine.redis.util.bean.ShopDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author weixiao
 * @date 2024/8/15 14:47
 */
@Mapper
public interface ShopMapper {

    @Select("select id, name, image, DATE_FORMAT(create_time,'%Y-%m-%d %H:%i:%s') as createTime from t_shop where id = #{id}")
    ShopDO getById(@Param("id") int id);
}
